import Vue from 'vue'
import Vuex from 'vuex'
import actions from '../actions/config'

import { UPDATE_IS_LOADING } from '../mutation-types';


Vue.use(Vuex)

const state = {
  isLoading: false
}

const mutations = {
  [UPDATE_IS_LOADING] (state, isLoading) {
    state.isLoading = isLoading
  }
}

export default {
  state,
  mutations,
  actions
}
